home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 23 / Amiga Format AFCD23 (Feb 1998, Issue 107).iso / +look_here_1st!+ / reader_requests / alienbreed3d2 / cheesesauce / serial.txt < prev    next >
Text File  |  1997-11-28  |  635b  |  22 lines

  1. Serial Communictation
  2.  
  3. Setting the baud rate
  4.   the value placed in the SERPER register is
  5.   (3546895/baud)-1
  6.   
  7. Setting the format
  8.   bit 15 of the SERPER register allows you to set data
  9.   transfer at either 8 or 9 bits
  10.   0 - 8 bits
  11.   1 - 9 bits
  12.  
  13. Sending:
  14.   First, you must wait for any previous serial comunication
  15.   to be completed.  This is done by checking the Transmit
  16.   Shift Register Empty bit (bit 12) of SERDATR (set when
  17.   it is okay to write)
  18.  
  19.   Data is sent by placing it in the SERDAT register
  20.   The lower 8 bits hold the byte to be sent, the 9th
  21.   bit holds a 1 (the stop bit) and the remaining bits
  22.   must be set to zero.